<?php


require_once(DIR_LIB."VsGui".DIR_SEP."vssmartywidget.php");

class XCartImageSelect extends VsSmartyWidget {

	//function __construct(&$page, &$product) {
	function __construct($file, $submited) {
		// Ne go zabravqj ina4e nqma $smarty Object
		parent::__construct();

		$this->_wwwDir = 'templates/XCart/';
		$this->assign('wwwDir', $this->_wwwDir);

		//$page->addJsFile($this->_wwwDir."js/popup_image_selection.js");
/*
		$page->addCssFile($this->_wwwDir."css/skin1_admin.css");
		$page->addCssFile($this->_wwwDir."css/switcher.css");
		$page->addJsFile($this->_wwwDir."js/common.js");
		$page->addJsFile($this->_wwwDir."js/switcher.js");
*/

		$this->_template = dirname(__FILE__).DIR_SEP."xcart_imageselect.html";
		$this->assign('submited', $submited?1:0);
		$this->assign('applyedImage', $file);
		$this->assign('formType', $_GET['type']);

		//$this->initJsCode0();
		//$this->initJsCode1();
		//$this->initJsCode2();
	}
	//============================================================================

	function show() {
		//$this->initImages();
		//echo $this->_template;

		return $this->fetch($this->_template);
	}
	//============================================================================


};

?>